package com.matt.service;


import com.matt.domain.LeaveRecord;
import org.springframework.data.domain.Page;

import java.util.List;

public interface LeaveRecordService {
    LeaveRecord addParentsRecord(String parentPhone,String childrenId,String leaveDate,Integer leaveType, String content);

    LeaveRecord addTeacherRecord(String areaId,String teacherId,String teacherName,String leaveDate,Integer leaveType, String content);

    Page<LeaveRecord> getAppLeaveRecord(String areaId,String staffId,String source, Integer pageNum, Integer pageSize);

    Page<LeaveRecord> getWxLeaveRecord(String childrenId, String date, Integer pageNum, Integer pageSize);

    void checkLeaveRecord(String staffId, String staffName, String leaveRecordId, String comment);

    void refuseLeaveRecord(String staffId, String staffName, String leaveRecordId, String comment);

    void deleteLeaveRecord(String staffId, String staffName, String leaveRecordId);

    List<LeaveRecord> getMyLeaveRecordByDate(String staffId, String beginDate, String endDate);
}
